HC: fix switch slider borders
authorJakub Steiner <jimmac@gmail.com>
Wed, 22 Apr 2020 09:51:27 +0000 (11:51 +0200)
committerJakub Steiner <jimmac@gmail.com>
Wed, 22 Apr 2020 09:59:40 +0000 (11:59 +0200)
- HC got caught up on a condition made for color (suggested) buttons.
  the rule just made the slider a tag lighter on dark probably due to the
  overlaid AA making it stronger. Got rid of it for now, if someone cares
  enough we can reintroduce an exception (that doesn't break HC).

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/_drawing.scss

index c9b3178f8a1a90665e15739a0ffa3d58cdb41bb1..4a81fc040123e5ba29202fcf921e8624ab55ab70 100644 (file)
@@ -2337,15 +2337,11 @@ switch {
     min-width: 24px;
     min-height: 24px;
     border: 1px solid;
+    border-color: $borders_color;
     border-radius: 50%;
     transition: $button_transition;
 
-    @if $variant == 'light' {
-      @include button(normal-alt, $edge: $shadow_color);
-    } 
-    @else {
-      @include button(normal-alt, $c: lighten($bg_color,6%), $edge: $shadow_color);
-    }
+    @include button(normal, $edge: $shadow_color);
   }
   
   > image { color: transparent; } /* only show i / o for the accessible theme */
index 1e601a63af1cf8c13c0b17f624180de1b8366722..e6fd25907442dd22b593a5e6abd226d375eafb86 100644 (file)
   // normal button alternative look
   //
     color: $tc;
-    border-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
+    border-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color); //colored buttons
     @if $variant == 'light' {
       background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
       @include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),